<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:form="http://java.sun.com/jsf/composite/components/form"
	template="/templates/include/main.xhtml">

	<ui:define name="content">
		<h:form id="loginForm" prependId="false">
			<p:growl id="growl" showDetail="true" sticky="false" />
			<p:panelGrid columns="2" rowClasses="center-td">
				<f:facet name="header">#{msg['login.header']}</f:facet>
				<h:outputLabel for="j_username" value="#{msg['login.username']}: " />
				<p:inputText id="j_username" required="true"
					value="#{userLoginBean.username}" label="Firstname" />
				<h:outputLabel for="j_password" value="#{msg['login.password']}:" />
				<p:password id="j_password" required="true"
					value="#{userLoginBean.password}" />
				<f:facet name="footer">
					<p:commandButton id="saveButton" action="#{userLoginBean.login}"
						value="#{msg['login.button.login']}" update="@form" ajax="false" />
				</f:facet>
			</p:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
